#include "SLT.h" 
void test1() {
	SLT* pf = NULL;
	Pullback(&pf, 1);
	Pullback(&pf, 2);
	Pullback(&pf, 3);
	Pullback(&pf, 4);
	SLTPrint(pf);

	PullFront(&pf, 5);
	PullFront(&pf, 6);
	SLTPrint(pf);

	PopFront(&pf);
	SLTPrint(pf);

	Popback(&pf);
	Popback(&pf);
	Popback(&pf);
	SLTPrint(pf);

	SLT* px = Find(pf,10);
	SLTPrint(px);
}


void test2() {
	SLT* pf = NULL;
	PullFront(&pf, 1);
	PullFront(&pf, 2);
	PullFront(&pf, 3);
	SLTPrint(pf);

	SLT*ret=Find(pf, 2);
	SLInsertAfter(ret, 6);
	SLTPrint(pf);

	SLEraseAfter(ret);
	SLTPrint(pf);

	SLTInsert(&pf, ret, 6);
	SLTPrint(pf);

	SLTErase(&pf, ret);
	SLTPrint(pf);

	Destroy(&pf);
}
int main() {
	//test1();
	test2();
	return 0;
}